GtkWindow: clean up button event handling
authorMatthias Clasen <mclasen@redhat.com>
Wed, 20 Mar 2013 15:42:35 +0000 (11:42 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 20 Mar 2013 22:21:12 +0000 (18:21 -0400)
commitda2a102adb68e85ff5a196e5c1d8c15b4fc65ff9
tree56049cc3a6e3c416b777399e0b86c32e867fd679
parent13092b3f3be3b9f92cc6fa192243b1b77ca53950
GtkWindow: clean up button event handling

We were not translating event coordinates to the toplevel
window, thus the regions we determined were not right.
We were also not respecting the maximized state, and we
were unnecessarily refusing to handle events when not decorated.
https://bugzilla.gnome.org/show_bug.cgi?id=696197
gtk/gtkwindow.c